class RaffleShareModel {
  String id;
  String raffleInfoId;
  String raffleName;
  String productName;
  int userId;
  String username;
  String userRegion;
  String userPhoneNumber;
  String ticketNumber;
  String content;
  int likeCount;
  List<String> pictureUrls;
  String createdTime;

  RaffleShareModel(
      {this.id,
      this.raffleInfoId,
      this.raffleName,
      this.productName,
      this.userId,
      this.username,
      this.userRegion,
      this.userPhoneNumber,
      this.ticketNumber,
      this.content,
      this.likeCount,
      this.pictureUrls,
      this.createdTime});

  RaffleShareModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    raffleInfoId = json['raffleInfoId'];
    raffleName = json['raffleName'];
    productName = json['productName'];
    userId = json['userId'];
    username = json['username'];
    userRegion = json['userRegion'];
    userPhoneNumber = json['userPhoneNumber'];
    ticketNumber = json['ticketNumber'];
    content = json['content'];
    likeCount = json['likeCount'];
    pictureUrls = json['pictureUrls'].cast<String>();
    createdTime = json['createdTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['raffleInfoId'] = this.raffleInfoId;
    data['raffleName'] = this.raffleName;
    data['productName'] = this.productName;
    data['userId'] = this.userId;
    data['username'] = this.username;
    data['userRegion'] = this.userRegion;
    data['userPhoneNumber'] = this.userPhoneNumber;
    data['ticketNumber'] = this.ticketNumber;
    data['content'] = this.content;
    data['likeCount'] = this.likeCount;
    data['pictureUrls'] = this.pictureUrls;
    data['createdTime'] = this.createdTime;
    return data;
  }
}